import * as React from "react";
import { Tree, Button } from "antd";

const TreeNode = Tree.TreeNode;

export default class AnimationComponent extends React.Component<any, any> {
    render() {
        return (
            <div>
                <Tree
                    >
                    <TreeNode title="parent 1" key="0-0">
                        <TreeNode title="parent 1-0" key="0-0-0">
                            <TreeNode title="leaf" key="0-0-0-0" />
                            <TreeNode title="leaf" key="0-0-0-1" />
                        </TreeNode>
                        <TreeNode title="parent 1-1" key="0-0-1">
                            <TreeNode title={<span style={{ color: '#08c' }}>sss</span>} key="0-0-1-0" />
                        </TreeNode>
                    </TreeNode>
                </Tree>
                <div>
                    <Button icon="link" />
                    <Button icon="link" />
                </div>
            </div>
        );
    }
}